home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / komercni software / miton / SystemMechanic7Pro.exe / {app} / smhtml.dll / 1033 / HTML / AUTOMATED.JS < prev    next >
Encoding:
Text File  |  2008-01-24  |  1.6 KB  |  64 lines

  1.  
  2.  
  3.  
  4. function AutomatedPageLoad()
  5. {
  6.   var a = new ActionButton();
  7.   a.Type = ACTION_BUTTON_CUSTOM;
  8.   a.ID = "a1";
  9.   a.Text = btLOC_Configure;
  10.   a.FloatClass = "floatR";
  11.   a.Event = "external.DoOnEmailReportConfigureClick();";
  12.   Get('spEmailReportConfigure').innerHTML = a.Render();
  13. }
  14.  
  15.  
  16.  
  17. // Call it when page load
  18. AddLoadEvent(AutomatedPageLoad);
  19.  
  20. //*************** Automated taskx ***************************//
  21.  
  22. function SetEmailReportDetails(DetailText)
  23. {
  24.   Get("divEmailReportingDetails").innerHTML = URLDecode(DetailText);
  25. }
  26.  
  27. function AddAutomaticTask(TaskID, HeadingText, DetailText, Enabled)
  28. {
  29.   var t  = new AutomaticTaskTable();
  30.   
  31.   var a = new AutomaticTask(TaskID);
  32.   a.Heading = HeadingText;
  33.   a.Detail = DetailText;
  34.   a.Enabled = Enabled;
  35.   
  36.   t.Add(a);
  37.   if( Get( t.tbl._ClientID() ) == null )
  38.      Get("divAutomaticTaskTable").innerHTML += t.tbl.Render();
  39. }
  40.  
  41. function SetAutomaticTaskEnabled(TaskID,Enabled)
  42. {
  43.   var a = new AutomaticTask(TaskID);
  44.   a.Enable(Enabled);
  45. }
  46.  
  47. function SetActiveCareEmailReportTipVisible(Value)
  48. {
  49. SetDisplayWidget('tblActiveCateTip', Value);
  50. }
  51.  
  52.  
  53. //*************** End Automated taskx ***************************//
  54.  
  55. //***********************************Set Language*************************//
  56. function SetLanguage (language)
  57. {
  58.      Get("spLOC_EmailReporting").innerHTML = spLOC_EmailReporting;
  59.      Get("spLOC_ActiveCareEmailReportsTip").innerHTML=spLOC_ActiveCareEmailReportsTip;
  60.      Get("spLOC_TasksPerformedAutomatically").innerHTML = spLOC_TasksPerformedAutomatically;
  61.      Get("spLOC_TasksPerformedAutomatically_Opening").innerHTML=spLOC_TasksPerformedAutomatically_Opening;
  62. }
  63.  
  64.